<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- Meta, title, CSS, favicons, etc. -->
    <meta charset="utf-8">
    
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>${_title}</title>

    <!-- Bootstrap core CSS -->

    <link href="${_css}/bootstrap.min.css" rel="stylesheet">

    <link href="${_font}/css/font-awesome.min.css" rel="stylesheet">
    <link href="${_css}/animate.min.css" rel="stylesheet">

    <!-- Custom styling plus plugins -->
    <link href="${_css}/custom.css" rel="stylesheet">
    <link href="${_css}/icheck/flat/green.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
          <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->

</head>


<body style="background: #F7F7F7;">
<div class="">
        <div class="row">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                    <div class="x_title">
                        <h2>发布借款</h2>
                        <div class="clearfix"></div>
                    </div>
                    <div class="x_content">

                        <form class="form-horizontal form-label-left" novalidate>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">用户名</label>
                                <div class="col-md-3 col-sm-3 col-xs-6">
                                	<input type="text" disabled="disabled" value="${item.userName!}" class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="password">真实姓名
                                </label>
                                <div class="col-md-3 col-sm-3 col-xs-6">
                                	<input type="text" readonly="readonly" value="${item.realName!}" class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="re-password">手机号码
                                </label>
                                <div class="col-md-3 col-sm-3 col-xs-6">
                                   <input type="text" readonly="readonly" value="${item.phone!}" class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="re-password">借款金额
                                </label>
                                <div class="col-md-3 col-sm-3 col-xs-6">
                                   <input type="text" readonly="readonly" value="${item.amount?string('#.00')}" class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>        
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="re-password">借款期限
                                </label>
                                <div class="col-md-3 col-sm-3 col-xs-6">
                                   <input type="text" readonly="readonly" value="<#if item.dateUtil??&&item.dateUtil=="MONTH">${item.date}个月<#elseif item.dateUtil??&&item.dateUtil=="DAY">${item.date}天</#if>" class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>                                                 
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="re-password">借款用途
                                </label>
                                <div class="col-md-3 col-sm-3 col-xs-6">
                                   <input type="text" readonly="readonly" value="${item.use!}" class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>  
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="re-password">借款类型
                                </label>
                                <div class="col-md-3 col-sm-3 col-xs-6">
                                   <input type="text" readonly="readonly"
										<#if item.applyType?exists>
	                                		<#if productList?exists>
	                                			<#list productList as product>
	                                				<#if item.applyType == product.id?string>value="${product.name}"</#if>
	                                			</#list>
		                                	</#if>
	                                	</#if>
	                                   
                                    class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>    
                            <div class="item form-group">
                                <label class="control-label col-md-3 col-sm-3 col-xs-12" for="re-password">申请时间
                                </label>
                                <div class="col-md-3 col-sm-3 col-xs-6">
                                   <input type="text" readonly="readonly" value="${(item.createTime?string("yyyy-MM-dd HH:mm:ss"))!}" class="form-control col-md-7 col-xs-12">
                                </div>
                            </div>     
                                                                              
                            <div class="ln_solid"></div>
                            <div class="form-group">
                                <div class="col-md-6 col-md-offset-3">
                                    <button type="button" onclick="javascript:history.go(-1)" class="btn btn-primary">返回前一页</button>
                                    <button type="button" onclick="javascript:window.location.href='/admin/borrow/add?id=${item.id}'" class="btn btn-success">发布借款</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
  
</body>
</html>